package com.ewzj.bigdata.mvp.contract

import com.ewzj.bigdata.mvp.model.rspbean.BaseData
import com.ewzj.bigdata.mvp.model.rspbean.TokenBean
import com.ewzj.bigdata.mvp.model.rspbean.User
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
class LoginContract{
    interface View : IView{
         fun showdialog()
         fun dismisdialog()
         fun showEnableCode(along: Long)
         fun showAbleCode()
    }

    interface Model: IModel{
         fun login(username: String, password: String): Observable<BaseData<TokenBean>>
         fun loginByThird(token: String, open_id: String, origin: String, form: String): Observable<BaseData<TokenBean>>
         fun sendSms(phone: String): Observable<BaseData<Any>>
    }
}